<form id="pagerForm" action="__URL__" method="post">
    <input type="hidden" name="pid" value="{$_REQUEST.pid}"/>
    <input type="hidden" name="pageNum" value="{$_REQUEST.pageNum}"/>
    <input type="hidden" name="numPerPage" value="{$_REQUEST.numPerPage}" />
    <input type="hidden" name="orderField" value="{$_REQUEST.orderField}" />
    <input type="hidden" name="orderDirection" value="{$_REQUEST.orderDirection}" />
    <volist name="_search" key="name" id="field">
        <input type="hidden" name="_search[{$key}]" value="{$field|safe}"/>
    </volist>
</form>

<div class="page">
	<div class="pageHeader">
		<form onsubmit="return navTabSearch(this);" action="__URL__/" method="post">
		<input type="hidden" name="pageNum" value="{$_REQUEST.pageNum}"/>
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>日志内容：</label>
					<input type="text" name="_search[errorlog]" value="{$_search.errorlog}"/>
				</li>
				<li>
					<label>渠道：</label>
					{:Helper("Form")->name('_search[device_channel]')->value($_search[device_channel])->option(D("SysChannel")->getField('name as id,name',true))->select()}
				</li>
				<li>
					<label>版本：</label>
					{:Helper("Form")->name('_search[device_vcode]')->value($_search[device_vcode])->option(D("SysVersion")->getField('id,version_name',true))->select()}
				</li>
                <div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div>
			</ul>
		</div>
		</form>
	</div>

	<div class="pageContent">
		<div class="panelBar">
		</div>

		<table class="list" width="100%" layoutH="138">
			<thead>
			<tr>
				<th width="60" orderField="id" class="{:orderField('id','desc')}">ID</th>
				<th width="180">日志信息</th>
				<th width="60">IMEI号</th>
				<th width="60">手机渠道</th>
				<th width="60">手机版本</th>
				<th width="60">手机型号</th>
				<th width="60">用户网卡</th>
				<th width="60">显示时间</th>
			</tr>
			</thead>
			<tbody>
			<volist id="vo" name="list">
				<tr target="sid_user" rel="{$vo['id']}">
					<td>{$vo['id']}</td>
					<td><a class="edit" href="__URL__/edit/id/{$vo['id']}" target="dialog" max="true" mask="true">{$vo['errorlog']|subtext=30}</a></td>
					<td>{$vo['device_imei']}</td>
					<td>{$vo['device_channel']}</td>
					<td>{$vo['device_vcode']}</td>
					<td>{$vo['device_model']}</td>
					<td>{$vo['device_mc']}</td>
					<td>{$vo['create_time']|date="Y-m-d H:i:s",###}</td>
				</tr>
			</volist>
			</tbody>
		</table>

		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
					<option value="10" <eq name="numPerPage" value="10">selected</eq>>10</option>
					<option value="20" <eq name="numPerPage" value="20">selected</eq>>20</option>
					<option value="50" <eq name="numPerPage" value="50">selected</eq>>50</option>
					<option value="100" <eq name="numPerPage" value="100">selected</eq>>100</option>
					<option value="200" <eq name="numPerPage" value="200">selected</eq>>200</option>
				</select>
				<span>共{$totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
		</div>
	</div>
</div>